// Copyright DustedPixels.com 2008. All rights reserved.

package com.dustedpixels.jasmin.unit.tools;

/**
 * @author micapolos@gmail.com (Michal Pociecha-Los)
 */
public class Sample {
  public enum Type {
    HI_Z,
    LOW,
    HIGH,
    MIXED;
  }
  
  public static final Sample HI_Z = new Sample(Type.HI_Z);
  public static final Sample LOW = new Sample(Type.HI_Z);
  public static final Sample HIGH = new Sample(Type.HI_Z);
  public static Sample MIXED(int value) {
    return new Sample(Type.MIXED, value);
  }
  
  public final Type type;
  public final int mixedValue;
  
  Sample(Type type) {
    this(type, 0);
  }
  
  Sample(Type type, int mixedValue) {
    this.type = type;
    this.mixedValue = mixedValue;
  }
}
